Skip to content

fix(macos): a file row's sign-in question names the file it opens on this Mac, not a host and port - #4696

Merged
datlechin merged 2 commits into
mainfrom
fix/macos-file-row-destination
Nov 28, 2026
Merged

datlechin merged 2 commits into
mainfrom
fix/macos-file-row-destination

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • For a file engine, DatabaseConnection.destinationSummary names the database file instead of host and port: a SQLite path, and DuckDB's or libSQL's file in local mode on those engines only. MotherDuck md:, server URLs, :memory: and a file the SSH server holds keep the server summary.
  • The summary and the shared-row consent list (fix(macos): a Team Library or linked-folder row asks before it uses this Mac's SSH credentials or files #4683) read files through one rule, localDatabaseFiles. Another engine's duckdbFilePath never stands in for its server.
  • A Team Library or linked-folder row that only opens a file here asks "Open a Database File on This Mac?" with an Open button. The sentence says the row opens the file on this Mac, and the file isn't listed again under it.
  • A row that also signs in with SSH or other credentials keeps the sign-in question. So does a socket row.
  • The env var prompt, the other destinationSummary caller, names the file the same way.
  • The new strings are in the catalog.

Test plan

  • LocalCredentialConsentTests:
    • a SQLite and a DuckDB file row's question opens the file and never says "signs in to" or "localhost:0";
    • a PostgreSQL row carrying duckdbFilePath still names its server, and a socket row keeps the sign-in question;
    • the file-row consent test now expects the file as the destination, not a listed use.
  • PromptedPasswordKeyTests: the summary names a SQLite and a DuckDB file; MotherDuck stays a server.
  • Local: app build; LocalCredentialConsent and PromptedPasswordKey suites; lint; localization.py extracted --add.

…ow keeps the sign-in question, and the new strings are in the catalog
@datlechin
datlechin merged commit bebe73c into main Nov 28, 2026
2 checks passed
@datlechin
datlechin deleted the fix/macos-file-row-destination branch November 28, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant